<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <button>疯狂抢票、疯狂攻击</button>
    <script src="./libs/jquery-1.12.4.min.js"></script>
    <script>
      let timer = null
      $('button').on('click', () => {
        if (timer !== null) return
        timer = setTimeout(() => {
          console.log('抢票/发送炮弹/攻击按键')
          timer = null
        }, 500)
      })
    </script>
  </body>
</html>
